package Work319.Test1;

/**
 * @author 张恒冕
 * 2019/3/19 9:51
 */

 class VIPUniversity extends University{

     @Override
    void enter(){
         if ((getEnglish()+getChinese()+getMath()+getSport())>=290 ){
             System.out.println("恭喜，4门总分为："+(getSport()+getEnglish()+getChinese()+getMath())+"，达到重点大学录取线");
         }else {
             System.out.println("您未被重点大学录取！");
         }
     }




    }



